package cn.bone.ou.user.mapper;

import cn.bone.ou.user.bean.UserApply;
import cn.bone.ou.user.dto.UserApplyDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserApplyMapper extends BaseMapper<UserApply>{

    List<UserApplyDto.ListDto> list(@Param("communityId")Integer communityId,
                                    @Param("start")Integer start,
                                    @Param("num")Integer num,
                                    @Param("applyState")Integer applyState,
                                    @Param("applyType")Integer applyType);

    int countList(@Param("communityId")Integer communityId,
                  @Param("applyState")Integer applyState,
                  @Param("applyType")Integer applyType);
}
